package utils;

import play.Play;

/**
 * 全局配置变量.
 */
public class GlobalConfig {

    // 阿里云 OSS 配置信息
    public final static String ALI_OSS_ENDPOINT = "http://oss-cn-hangzhou.aliyuncs.com";
    public final static String ALI_OSS_ACCESS_KEY_ID = "dgneRI3o7IJFXSRC";
    public final static String ALI_OSS_ACCESS_KEY_SECRET = "PT74UGnspNnXS3fSUGKjYGPfF42l4l";
    public final static String ALI_OSS_BUCKET_NAME = "buhaoba";
    public final static String ALI_OSS_DOMAIN = "https://cdn.buhaoba.com";
    public final static String ALI_IMG_OSS_DOMAIN = "https://buhaoba.img-cn-hangzhou.aliyuncs.com";

    // CDN配置信息
    public final static String ASSETS_BASE_URL = "https://cdn.buhaoba.com";
    public final static String ASSETS_VERSION = "v1";

    // 微信小程序 配置信息
    public final static String MINIAPP_APP_ID = Play.configuration.getProperty("miniApp.appId" , "wx11cb734fa66f340d");
    public final static String MINIAPP_APP_SECURET = Play.configuration.getProperty("miniApp.appSecret" , "62d5805e00923dff39fe97eb9c2a8d45");
    public final static String MINIAPP_TOKEN = Play.configuration.getProperty("miniApp.token" , "");
    public final static String MINIAPP_AES_KEY = Play.configuration.getProperty("miniApp.aesKey" ,"");

    public final static String MINIAPP_MCH_ID = Play.configuration.getProperty("miniApp.mchId" ,"1508953591");
    public final static String MINIAPP_PAY_KEY = Play.configuration.getProperty("miniApp.payKey" ,"tongshitongshiweixinpaykeytsts88");
    public final static String MINIAPP_PAY_PATH = Play.configuration.getProperty("miniApp.payPath" ,"/Users/vivin/DEV/cert/apiclient_cert.p12");


    //token
    public final static String API_HEADER_TOKEN = "token";

    //微信支付相关配置
    public final static String WEIXIN_BASE_DOMAIN = Play.configuration.getProperty("miniApp.domain" , "https://tstsapi.buhaoba.com");;
    public final static String WEIXIN_PAY_BACK_URL = "/api/v1/payment/callBack";

    // 公众号信息
    public final static Long WEIXIN_DATE_ID = 2l;

    /**
     * 微信WAP网站、请求的主域名.
     */
    public final static String SPBILL_CREATE_IP = "39.72.132.15";

}
